/*
 * @Author: EvanXU evanxu8023@163.com
 * @Date: 2023-02-04 11:02:19
 * @LastEditors: EvanXU evanxu8023@163.com
 * @LastEditTime: 2024-04-25 11:35:29
 * @FilePath: \program\USER\USMART\usmart_config.c
 * @Description: 
 *  xxx 
 * Copyright (c) 2023 by EvanXU evanxu8023@163.com, All Rights Reserved. 
 */
#include "usmart.h"
#include "usmart_str.h" 

////////////////////////////用户配置区///////////////////////////////////////////////
//这下面要包含所用到的函数所申明的头文件(用户自己添加) 	
#include "led.h"	

extern void reboot(void);
extern void version(void);
//extern void rtc_modfiy_date(uint32_t year, uint32_t month, uint32_t day, uint32_t hour, uint32_t minute, uint32_t second);
//extern void date(void);



//函数名列表初始化(用户自己添加)
//用户直接在这里输入要执行的函数名及其查找串
struct _m_usmart_nametab usmart_nametab[]=
{
#if USMART_USE_WRFUNS==1 	//如果使能了读写操作
	(void*)read_addr,"uint32_t read_addr(uint32_t addr)",
	(void*)write_addr,"void write_addr(uint32_t addr,uint32_t val)",	 
#endif
	
	(void*)led_state_set,(u8*)"void led_state_set(uint8_t LEDx,LEDState_TypeDef state)",
	(void*)reboot,(u8*)"void reboot(void)",
	(void*)version, (u8*)"void version(void)",
//	(void*)date,(u8*)"void date(void)",
//	(void*)rtc_modfiy_date,(u8*)"void rtc_modfiy_date(uint32_t year, uint32_t month, uint32_t day, uint32_t hour, uint32_t minute, uint32_t second)",
	
//	(void*)write_test,(u8*)"void write_test(void)",
//	(void*)read_test,(u8*)"void read_test(void)",
//    (void*)sys_info,"void bat_info(void)",
};



///////////////////////////////////END///////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////////
//函数控制管理器初始化
//得到各个受控函数的名字
//得到函数总数量
struct _m_usmart_dev usmart_dev=
{
	usmart_nametab,
	usmart_init,
	usmart_cmd_rec,
	usmart_exe,
	usmart_scan,
	sizeof(usmart_nametab)/sizeof(struct _m_usmart_nametab),//函数数量
	0,	  	//参数数量
	0,	 	//函数ID
	1,		//参数显示类型,0,10进制;1,16进制
	0,		//参数类型.bitx:,0,数字;1,字符串	    
	0,	  	//每个参数的长度暂存表,需要MAX_PARM个0初始化
	0,		//函数的参数,需要PARM_LEN个0初始化
};   



















